a
This commit is contained in:
parent
a43873ec8e
commit
ea74048d5c
CedBotSharp
@ -33,7 +33,7 @@ namespace CedBotSharp
|
||||
private DrawingAttributes inkDA = new DrawingAttributes();
|
||||
private OtherWindows.AboutBox1 about = new OtherWindows.AboutBox1();
|
||||
private OtherWindows.SettingWindow setting = new OtherWindows.SettingWindow();
|
||||
private OtherWindows.SendToolWindow sendTool = new OtherWindows.SendToolWindow();
|
||||
private OtherWindows.SendToolWindow sendTool;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
@ -48,6 +48,8 @@ namespace CedBotSharp
|
||||
bot = new Bot.CedBot(this, Env.GetString("token"));
|
||||
rpc = new Extensions.DiscordRPC(this, Properties.Settings.Default.drpcAppID);
|
||||
|
||||
sendTool = new OtherWindows.SendToolWindow(bot);
|
||||
|
||||
PaintColor.SelectedColor = PaintCanvas.DefaultDrawingAttributes.Color;
|
||||
};
|
||||
|
||||
@ -121,7 +123,7 @@ namespace CedBotSharp
|
||||
|
||||
private void SendToolButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
sendTool.ShowDialog();
|
||||
}
|
||||
|
||||
private void PaintColor_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs<Color?> e)
|
||||
|
@ -25,6 +25,12 @@ namespace CedBotSharp.OtherWindows
|
||||
{
|
||||
InitializeComponent();
|
||||
bot = _bot;
|
||||
|
||||
Closing += (s, e) =>
|
||||
{
|
||||
e.Cancel = true;
|
||||
Visibility = Visibility.Collapsed;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user