public static string SelectChatSource( ChatSourceManager Manager )
        {
            AddChatWindow dlg = new AddChatWindow();
            dlg.ChatSources = (from b in Manager.Sources.Keys
                               select b).ToArray();

            bool? ret = dlg.ShowDialog();

            if (ret.HasValue && ret.Value)
                return dlg.ChatSource;

            return null;
        }
예제 #2
0
        public static string SelectChatSource(ChatSourceManager Manager)
        {
            AddChatWindow dlg = new AddChatWindow();

            dlg.ChatSources = (from b in Manager.Sources.Keys
                               select b).ToArray();

            bool?ret = dlg.ShowDialog();

            if (ret.HasValue && ret.Value)
            {
                return(dlg.ChatSource);
            }

            return(null);
        }
예제 #3
0
        public MainWindow()
        {
            InitializeComponent();

            Me = this;
            _hookID = SetHook(_proc);

            ratChatCaption.Text = "RatChat v" + GetRunningVersion();

            ChatSourceManager = new RatChat.ChatSourceManager();
            achievCP.Content = ChatSourceManager.Achievment;
            Properties.Settings.Default.SettingsSaving += PropertySettingsSavingEventHandler;
            Properties.Settings.Default.PropertyChanged += Default_PropertyChanged;
            Chats.DataContext = ChatSourceManager.Chats;

               // Plugin = XSplit.Wpf.TimedBroadcasterPlugin.CreateInstance("3A1184B5-19A5-4384-BF12-8BB48A3C4111", this);
        }
예제 #4
0
 void PropertySettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ChatSourceManager.StoreChats(Chats);
     Properties.Settings.Default.chatConfigs = ChatSourceManager.ChatConfigStorage.Save();
 }