コード例 #1
0
ファイル: Program.cs プロジェクト: codedaemon/StackMonitor
 static void Main()
 {
     Application.EnableVisualStyles();
       Application.SetCompatibleTextRenderingDefault(false);
       StackMonitorClient client = new StackMonitorClient();
       Application.Run(client);
 }
コード例 #2
0
 public MonitorPreferences(StackMonitorClient clientform)
 {
     InitializeComponent();
       tabPageTagList.MouseMove += TagMouseMove;
       tabPageTagList.MouseUp += TagMouseUp;
       typeof(Control).GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(tabPageTagList, true, null);
       mainApplication = clientform;
       backgroundBrush = new LinearGradientBrush(Point.Empty, new Point(0, this.Bounds.Height), Color.LightGray, Color.Gray);
       textBoxNewQuestionTimeout.Text = (MonitorQuestionNotificator.DisplayTime / 1000).ToString();
       textBoxReputationChanges.Text = (MonitorReputationNotificator.DisplayTime / 1000).ToString();
       textBoxNewBadges.Text = (MonitorBadgeNotificator.DisplayTime / 1000).ToString();
       dm = new StackOverflowDataManager();
 }