示例#1
0
        void tsbColours_Click(object sender, EventArgs e)
        {
            var dlg = new FormColours();

            dlg.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);

            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                dlg.Dispose();
                return;
            }

            Colours.I.Pairs = new Dictionary <Tuple <PacketInfo.Daemon, PacketInfo.Daemon>, Tuple <Color, Color> >(dlg.Pairs);
            Colours.I.Save();
            flvPackets.Refresh();

            dlg.Dispose();
        }
示例#2
0
文件: FormMain.cs 项目: Epidal/Ostara
		void tsbColours_Click(object sender, EventArgs e) {
			var dlg = new FormColours();
			dlg.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);

			if (dlg.ShowDialog() == DialogResult.Cancel) {
				dlg.Dispose();
				return;
			}

			Colours.I.Pairs = new Dictionary<Tuple<PacketInfo.Daemon, PacketInfo.Daemon>, Tuple<Color, Color>>(dlg.Pairs);
			Colours.I.Save();
			flvPackets.Refresh();

			dlg.Dispose();
		}