private static Window InitScheduleWindow(RecurrencePattern rPattern)
        {
            Window w = new Window();

            w.SizeToContent         = SizeToContent.WidthAndHeight;
            w.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            NetClient.Common.Schedule.ScheduleView v = new NetClient.Common.Schedule.ScheduleView();
            v.Pattern       = rPattern;
            w.Content       = v;
            w.Title         = "Schedule settings";
            w.ShowInTaskbar = false;
            w.WindowStyle   = WindowStyle.SingleBorderWindow;
            w.ResizeMode    = ResizeMode.NoResize;
            return(w);
        }
 private static Window InitScheduleWindow(RecurrencePattern rPattern)
 {
     Window w = new Window();
     w.SizeToContent = SizeToContent.WidthAndHeight;
     w.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     NetClient.Common.Schedule.ScheduleView v = new NetClient.Common.Schedule.ScheduleView();
     v.Pattern = rPattern;
     w.Content = v;
     w.Title = "Schedule settings";
     w.ShowInTaskbar = false;
     w.WindowStyle = WindowStyle.SingleBorderWindow;
     w.ResizeMode = ResizeMode.NoResize;
     return w;
 }