Exemplo n.º 1
0
 public MainWindow()
 {
     try
     {
         InitializeComponent();
         Openning.WindowState = WindowState.Maximized;
         try
         {
             options = new ApllicationOptions();
         }
         catch (OptionFileNotExistException exception)
         {
             System.Windows.MessageBox.Show(exception.Message);
             throw exception;
         }
         fillText(options.language);
         fillTextColor((SolidColorBrush) new BrushConverter().ConvertFromString(options.fontColor));
         fillDropDowns();
     }
     catch (Exception exception)
     {
         System.Windows.MessageBox.Show("We apologise you but the program cannot be open.\n\n" + exception.ToString());
         throw new Exception();
     }
 }
Exemplo n.º 2
0
 public WineGrid(ApllicationOptions ao) : base(ao)
 {
     dataSource     = "data\\" + ao.wineSource;
     specialColumns = true;
     sortMethod     = ao.language.WindowNewWineItem_Get_Grid_Score_Label() + " DESC, "
                      + ao.language.WindowNewWineItem_Get_Grid_Name_Label() + " ASC";
 }
Exemplo n.º 3
0
        public MainPage(ApllicationOptions o)
        {
            InitializeComponent();

            options   = o;
            codeTypes = new CodeTypes(options.language);

            wineDataGridShow();
            dishDataGridShow();
            spiceDataGridShow();
            fillText(options.language);
        }
Exemplo n.º 4
0
 public SpiceGrid(ApllicationOptions ao) : base(ao)
 {
     dataSource     = "data\\" + ao.spiceSource;
     specialColumns = false;
     sortMethod     = ao.language.WindowNewSpiceItem_Get_Grid_Name_Label() + " ASC";
 }
Exemplo n.º 5
0
 public GridType_Parameters(ApllicationOptions ao)
 {
     this.ao = ao;
 }