Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            this.Paint  += Form1_Paint;
            this.Resize += Form1_Resize;

            this.MouseWheel += Form1_MouseWheel;

            HeaderLabel = new Label();
            HeaderLabel.SetBounds(0, 0, Width, Height / 3);

            this.BackColor = Color.FromArgb(40, 40, 40);

            mvd   = new MonthViewDrawer(this);
            Cache = new Cache(this);
            AppoitmentDataHandler.form = this;
            addAppointmentForm         = new AddAppointmentForm(this);

            InitOwnFormComponents();

            AppoitmentDataHandler.AddAppoitmentsFromFile(Environment.CurrentDirectory + APPOINTMENT_DATA_FILE);
        }
Exemplo n.º 2
0
 public void SaveAppoitmentsButton_Click(SaveAppoitmentsButton saveAppoitmentsButton, EventArgs e)
 {
     AppoitmentDataHandler.WriteAllAppoitmentsToFile(Environment.CurrentDirectory + APPOINTMENT_DATA_FILE);
 }