private void buttonGeneratePDF_Click(object sender, RoutedEventArgs e)
 {
     string[] fileNames = WiisyScreenUIHelper.ChoosePics(textBlockScreenShotsPath.Text);
     if (fileNames != null && fileNames.Length != 0)
     {
         ScreenSaver.ScreenSaver.CreatePDF(textBlockScreenShotsPath.Text, fileNames);
     }
 }
Esempio n. 2
0
 private void initFirstUse()
 {
     actionBubbleSlot1.setApp(runBoard, WiisyScreenUIHelper.createImageForEllipse("whiteboard-icon.png"));
     actionBubbleSlot1.BubbleData = new ActionBubble.ActionBubbleData("BoardApp", eBubbleType.Board);
     actionBubbleSlot2.setApp(runMacroApp, WiisyScreenUIHelper.createImageForEllipse("macroicon.png"));
     actionBubbleSlot2.BubbleData = new ActionBubble.ActionBubbleData("MacroApp", eBubbleType.Macro);
     actionBubbleSlot1.Opacity    = actionBubbleSlot2.Opacity = 1;
 }
Esempio n. 3
0
 private void initMainBubbels(List <ActionBubble.ActionBubbleData> mainBubbels)
 {
     //to do in a loop
     actionBubbleSlot1.Copy(WiisyScreenUIHelper.CreateActionBubbleFromData(mainBubbels[0]));
     actionBubbleSlot2.Copy(WiisyScreenUIHelper.CreateActionBubbleFromData(mainBubbels[1]));
     actionBubbleSlot3.Copy(WiisyScreenUIHelper.CreateActionBubbleFromData(mainBubbels[2]));
     actionBubbleSlot4.Copy(WiisyScreenUIHelper.CreateActionBubbleFromData(mainBubbels[3]));
 }
        private void buttonChooseSCFolder_Click(object sender, RoutedEventArgs e)
        {
            string scFolder = WiisyScreenUIHelper.chooseFolder(textBlockScreenShotsPath.Text);

            if (scFolder != null)
            {
                TheBoardApp.MainWindow.ScreenShotsFolder = scFolder;
                textBlockScreenShotsPath.Text            = scFolder;
            }
        }
        private void initBubbels()
        {
            apllicationStackPanel.Children.Clear();
            apllicationStackPanel.Children.Add(addActionBubble);

            addActionBubbleToRepasatory(WiisyScreenUIHelper.CreateActionBubbleFromData(new ActionBubble.ActionBubbleData("", eBubbleType.Empty)));
            addActionBubbleToRepasatory(WiisyScreenUIHelper.CreateActionBubbleFromData(new ActionBubble.ActionBubbleData("BoardApp", eBubbleType.Board)));
            addActionBubbleToRepasatory(WiisyScreenUIHelper.CreateActionBubbleFromData(new ActionBubble.ActionBubbleData("MacroApp", eBubbleType.Macro)));
            addActionBubbleToRepasatory(WiisyScreenUIHelper.CreateActionBubbleFromData(new ActionBubble.ActionBubbleData("Calc", eBubbleType.Calc)));
        }
        internal void initRepository(List <ActionBubble.ActionBubbleData> repositoryData)
        {
            apllicationStackPanel.Children.Clear();
            apllicationStackPanel.Children.Add(addActionBubble);

            foreach (ActionBubble.ActionBubbleData bubbleData in repositoryData)
            {
                addActionBubbleToRepasatory(WiisyScreenUIHelper.CreateActionBubbleFromData(bubbleData));
            }
        }
Esempio n. 7
0
 private void hundleSaveData()
 {
     File.Delete(k_savedDataFile);
     ;           if (settings.ToSaveData())
     {
         WiisyScreenSavedData dataToSave = new WiisyScreenSavedData();
         dataToSave.MainBubbels    = GetMainBubbelsData();
         dataToSave.RepositoryData = settings.GetRepository();
         WiisyScreenUIHelper.WriteToBinaryFile <WiisyScreenSavedData>(k_savedDataFile, dataToSave);
     }
 }
Esempio n. 8
0
 private void initApps()
 {
     if (File.Exists(k_savedDataFile) == false)
     {
         initFirstUse();
         //settings first use???
     }
     else
     {
         WiisyScreenSavedData savedData = WiisyScreenUIHelper.ReadFromBinaryFile <WiisyScreenSavedData>(k_savedDataFile);
         initMainBubbels(savedData.MainBubbels);
         settings.initRepository(savedData.RepositoryData);
     }
 }
        private void addActionBubble_Click(object sender, RoutedEventArgs e)
        {
            ActionBubble ab = WiisyScreenUIHelper.CreateCustomizeActionBubble();

            if (ab != null)
            {
                if (findActionBubbleInReposeory(ab) == null)
                {
                    addActionBubbleToRepasatory(ab);
                }
                else
                {
                    notifayAppsError("App Alredy Exists");
                }
            }
        }